package com.zw.rpc.server.config;

import com.zw.rpc.codec.Decoder;
import com.zw.rpc.codec.Encoder;
import com.zw.rpc.codec.impl.JsonDecoder;
import com.zw.rpc.codec.impl.JsonEncoder;
import com.zw.rpc.transport.TransportServer;
import com.zw.rpc.transport.impl.ServletTransportServer;
import lombok.Data;

/**
 * @author zw
 */
@Data
public class RpcServerConfig {

    private Class<? extends TransportServer> transportClass = ServletTransportServer.class;

    private Class<? extends Encoder> encoderClass = JsonEncoder.class;

    private Class<? extends Decoder> decoderClass = JsonDecoder.class;

    private Integer port = 3000;
}
